import { RouteRecordRaw } from 'vue-router'

// 示例路由
const demoRouters: RouteRecordRaw[] = [
  { path: '/form', component: () => import('@/views/demo/form/index.vue') },
  {
    name: 'CrudListDemo',
    path: '/demo/crud/list',
    component: () => import('@/views/demo/crud/list.vue'),
    meta: {
      title: '列表模板',
      keepAlive: true
    }
  },
  {
    name: 'CrudAddDemo',
    path: '/demo/crud/add',
    component: () => import('@/views/demo/crud/add.vue'),
    meta: {
      title: '新增表单页面模板'
    }
  },
  {
    name: 'CrudDetailDemo',
    path: '/demo/crud/detail',
    component: () => import('@/views/demo/crud/detail.vue'),
    meta: {
      title: '详情页面模板'
    }
  },
  {
    name: 'CrudAuditDemo',
    path: '/demo/crud/audit',
    component: () => import('@/views/demo/crud/audit.vue'),
    meta: {
      title: '审核页面模板'
    }
  },
  {
    path: '/demo/vuex',
    component: () => import('@/views/demo/vuex/index.vue'),
    meta: {
      title: 'vuex使用模板'
    }
  },
  {
    path: '/demo/vant',
    component: () => import('@/views/demo/vant/index.vue'),
    meta: {
      title: 'vant使用模板'
    }
  }
]

export default demoRouters
